package com.ruoyi.labdata.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.labdata.mapper.LabPlatformSubordinateMapper;
import com.ruoyi.labdata.domain.LabPlatformSubordinate;
import com.ruoyi.labdata.service.ILabPlatformSubordinateService;

/**
 * subordinateService业务层处理
 * 
 * @author winner pan
 * @date 2022-04-29
 */
@Service
public class LabPlatformSubordinateServiceImpl implements ILabPlatformSubordinateService {
	@Autowired
	private LabPlatformSubordinateMapper labPlatformSubordinateMapper;

	/**
	 * 查询subordinate
	 * 
	 * @param subordinateId
	 *            subordinateID
	 * @return subordinate
	 */
	@Override
	public LabPlatformSubordinate selectLabPlatformSubordinateById(Long subordinateId) {
		return labPlatformSubordinateMapper.selectLabPlatformSubordinateById(subordinateId);
	}

	/**
	 * 查询subordinate列表
	 * 
	 * @param labPlatformSubordinate
	 *            subordinate
	 * @return subordinate
	 */
	@Override
	public List<LabPlatformSubordinate> selectLabPlatformSubordinateList(
			LabPlatformSubordinate labPlatformSubordinate) {
		return labPlatformSubordinateMapper.selectLabPlatformSubordinateList(labPlatformSubordinate);
	}

	/**
	 * 新增subordinate
	 * 
	 * @param labPlatformSubordinate
	 *            subordinate
	 * @return 结果
	 */
	@Override
	public int insertLabPlatformSubordinate(LabPlatformSubordinate labPlatformSubordinate) {
		return labPlatformSubordinateMapper.insertLabPlatformSubordinate(labPlatformSubordinate);
	}

	/**
	 * 修改subordinate
	 * 
	 * @param labPlatformSubordinate
	 *            subordinate
	 * @return 结果
	 */
	@Override
	public int updateLabPlatformSubordinate(LabPlatformSubordinate labPlatformSubordinate) {
		return labPlatformSubordinateMapper.updateLabPlatformSubordinate(labPlatformSubordinate);
	}

	/**
	 * 批量删除subordinate
	 * 
	 * @param subordinateIds
	 *            需要删除的subordinateID
	 * @return 结果
	 */
	@Override
	public int deleteLabPlatformSubordinateByIds(Long[] subordinateIds) {
		return labPlatformSubordinateMapper.deleteLabPlatformSubordinateByIds(subordinateIds);
	}

	/**
	 * 删除subordinate信息
	 * 
	 * @param subordinateId
	 *            subordinateID
	 * @return 结果
	 */
	@Override
	public int deleteLabPlatformSubordinateById(Long subordinateId) {
		return labPlatformSubordinateMapper.deleteLabPlatformSubordinateById(subordinateId);
	}
}
